package com.fh.controller;

import com.fh.model.vo.ShoppingCartVO;
import com.fh.service.StockService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("stockquery")
public class StockController {

    @Resource
    private StockService stockService;

    @GetMapping("select")
   public List<ShoppingCartVO> queryStock( @RequestParam("list") List<Integer> list){
        return  stockService.queryStock(list);
    }

}
